package com.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;

import com.demo.config.NacosServiceDeregisterAutoConfig;
import com.demo.factory.YamlPropertySourceFactory;

@SpringBootApplication
@EnableDiscoveryClient
@Import(value = {NacosServiceDeregisterAutoConfig.class})
@PropertySource(value = {"classpath:application-heart.yml"}, ignoreResourceNotFound = false, encoding = "UTF-8", factory = YamlPropertySourceFactory.class)
public class SimpleNacosApplication {
	
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(SimpleNacosApplication.class);
        System.out.println(run);
    }
    
}